package org.jeecg.modules.zcgl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zcgl.entity.AssetFixed;
import org.jeecg.modules.zcgl.entity.AssetFixedMaintenance;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.zcgl.vo.statistical.AssetMaintenanceVo;
import org.jeecg.modules.zcgl.vo.statistical.AssetScrapVo;

/**
 * @Description: 固定资产维修报废
 * @Author: jeecg-boot
 * @Date:   2021-07-02
 * @Version: V1.0
 */
public interface IAssetFixedMaintenanceService extends IService<AssetFixedMaintenance> {

    /**
     * 固定资产维修
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetMaintenanceVo> queryAssetFixedMaintenancePageList(Page<AssetMaintenanceVo> page, QueryWrapper<AssetMaintenanceVo> queryWrapper);

    /**
     * 固定资产报废
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetScrapVo> queryAssetFixedScrapPageList(Page<AssetScrapVo> page, QueryWrapper<AssetScrapVo> queryWrapper);



    /**
     * 维修
     * @param assetFixedMaintenance
     */
    void maintenanceAsset(AssetFixedMaintenance assetFixedMaintenance);


    /**
     * 报废
     * @param assetFixedMaintenance
     */
    void scrapAsset(AssetFixedMaintenance assetFixedMaintenance);

}
